<template>
	<view class="content">
		<navigationCustom :config="config" @customConduct="customConduct" />
		<view class="zonge">
			<text class="font24">提成总额（元）</text><br>
			<text class="font48 fontw">125</text>
		</view>
		<view class="tabs">
			<view class="item" v-for="(item,index) in tabsList" :key="index" @click="dian(item.name,index)">
				<view class="icon">
					<image :src="item.icon" mode="aspectFit"></image>
				</view>
				<view class="des font44 fontw">
					{{item.num}}
				</view>
				<view class="title font28">
					{{item.name}}
				</view>
			</view>
		</view>
		<view class="titles font24 fontw">
			所有门店
		</view>
		<view class="list">
			<scroll-view :scroll-top="scrollTop" scroll-y="true" class="scroll-Y" @scrolltolower="scrolltolower">
				<view class="orde">
					<view class="item" v-for="(item,index) in list" :key="index">
						<view class="left">
							<view class="image">
								<image :src="item.image" mode="aspectFit"></image>
							</view>
							<view class="shopInfo">
								<view class="title font30 fontw">
									{{item.name}}
								</view>
								<view class="service">
									<view class="lever font22">


										<image src="../../../static/images/finance/star.png" mode="aspectFit"></image>


										<image src="../../../static/images/finance/star.png" mode="aspectFit"></image>

										<image src="/shareholder/static/images/star.png" mode="aspectFit"></image>



										<image src="/shareholder/static/images/star.png" mode="aspectFit"></image>

										{{item.lever || 0}}
									</view>
									<view class="num font22">
										已服务{{item.service || 0}}单
									</view>
								</view>
								<view class="add font22" v-if="item.add">





									<image src="../../../static/images/finance/ladd.png" mode="aspectFit"></image>
									{{item.add}}
								</view>
								<view class="phone font22">
									<image src="../../../static/images/finance/phone.png" mode="aspectFit"></image>





									<image src="/shareholder/static/images/ladd.png" mode="aspectFit"></image>
									{{item.add}}
								</view>
								<view class="phone font22">
									<image src="/shareholder/static/images/phone.png" mode="aspectFit"></image>





									{{item.phone}}
								</view>
							</view>
						</view>
						<view class="business">
							<view class="title font22">
								营业时间
							</view>
							<view class="time font18">
								{{item.time}}
							</view>
						</view>
					</view>
				</view>
			</scroll-view>
		</view>
	</view>
</template>

<script>
	import navigationCustom from "@/components/struggler-navigationCustom/navigation-custom"
	export default {
		data() {
			return {
				config: {
					title: "总营收量", //title
					bgcolor: "#c1a379", //背景颜色
					// fontcolor:"red", //文字颜色，默认白色
					type: 4, //type 1，3胶囊 2，4无胶囊模式
					transparent: true, //是否背景透明 默认白色
					linear: false, //是为开启下滑渐变
					share: false, //是否将主页按钮显示为分享按钮
					menuIcon: "/static/images/back_.png", // 当type为3或者4的时候左边的icon文件位置，注意位置与当前页面不一样
					// menuText:"返回", 当type为3或4的时候icon右边的文字
				},
				tabsList: [{
						name: '会员总量(人)',
						num: '1562',





						icon: '../../../static/images/shareholder/vip.png'
					}, {
						name: '保养总量(次)',
						num: '6554',
						icon: '../../../static/images/shareholder/sz.png'
					}, {
						name: '销售总量(元)',
						num: '31562',
						icon: '../../../static/images/shareholder/xs.png'





						icon: '/shareholder/static/images/vip.png'
					}, {
						name: '保养总量(次)',
						num: '6554',
						icon: '/shareholder/static/images/sz.png'
					}, {
						name: '销售总量(元)',
						num: '31562',
						icon: '/shareholder/static/images/xs.png'





					},
					{
						name: '技师总量(人)',
						num: '36',


						icon: '../../../static/images/shareholder/js.png'


						icon: '../../../static/images/shareholder/js.png'

						icon: '/shareholder/static/images/js.png'



						icon: '/shareholder/static/images/js.png'

					}
				],
				scrollTop: 0,
				list: [{


					image: '../../../static/logo.png',


					image: '../../../static/logo.png',

					image: '/static/logo.png',



					image: '/static/logo.png',

					name: '草本中医养生馆草本中医养生馆',
					lever: '4',
					service: '156',
					add: '0.27',
					phone: '682-5956',
					time: '09:00-23:59'
				}, {


					image: '../../../static/logo.png',


					image: '../../../static/logo.png',

					image: '/static/logo.png',



					image: '/static/logo.png',

					name: '草本中医养生馆草本中医养生馆',
					lever: '4',
					service: '156',
					add: '',
					phone: '682-5956',
					time: '09:00-23:59'
				}, {


					image: '../../../static/logo.png',


					image: '../../../static/logo.png',

					image: '/static/logo.png',



					image: '/static/logo.png',

					name: '草本中医养生馆草本中医养生馆',
					lever: '4',
					service: '156',
					add: '',
					phone: '682-5956',
					time: '09:00-23:59'
				}]
			};
		},
		components: {
			navigationCustom
		},
		methods: {
			customConduct(e) {
				uni.navigateBack()
			},
			scrolltolower() {}
		}
	}
</script>

<style lang="scss">
	.content {
		background: url('');
		background-repeat: no-repeat;
		background-size: 100% 442rpx;
		height: 100vh;

		.zonge {
			color: #fff;
			position: absolute;
			top: 244rpx;
			left: 29rpx;
		}

		.tabs {
			display: flex;
			align-items: center;
			justify-content: space-between;
			padding: 0 38rpx;
			margin-top: 250rpx;
			flex-wrap: wrap;

			.item {
				width: 325rpx;
				height: 216rpx;
				background: #FFFFFF;
				border-radius: 21rpx;
				display: flex;
				flex-direction: column;
				align-items: center;
				justify-content: center;
				position: relative;
				margin-bottom: 23rpx;

				.icon {
					width: 58rpx;
					height: 57rpx;
					position: absolute;
					right: 16rpx;
					bottom: 5rpx;

					image {
						width: 58rpx;
						height: 57rpx;
					}
				}

				.des {
					color: #1EB481;
					margin-bottom: 19rpx;
				}

				.title {
					color: #333333;
				}
			}
		}

		.titles {
			padding-left: 39rpx;
			margin-top: 42rpx;
			margin-bottom: 18rpx;
		}

		.list {
			padding: 0 40rpx;

			.scroll-Y {
				height: calc(100vh - 1030rpx);

				.orde {
					background-color: #fff;
					border-radius: 10rpx;
					padding: 18rpx 22rpx;

					.item {
						display: flex;
						align-items: center;
						justify-content: space-between;
						margin-bottom: 20rpx;

						.left {
							.image {
								width: 165rpx;
								height: 165rpx;
								border-radius: 24rpx;
								overflow: hidden;
								margin-right: 30rpx;

								image {
									width: 165rpx;
									height: 165rpx;
								}
							}

							.shopInfo {
								width: 248rpx;
								height: 165rpx;
								display: flex;
								flex-direction: column;
								justify-content: space-between;

								.title {
									display: -webkit-box;
									-webkit-line-clamp: 1;
									/* 显示的行数 */
									-webkit-box-orient: vertical;
									overflow: hidden;
								}

								.service {
									display: flex;
									align-items: center;

									.lever {
										color: #F4B937;
										margin-right: 22rpx;
										display: flex;
										align-items: center;

										image {
											width: 21rpx;
											height: 19rpx;
											margin-right: 6rpx;
										}
									}

									.num {
										color: #666666;
									}
								}

								.add {
									color: #666666;
									display: flex;
									align-items: center;

									image {
										width: 16rpx;
										height: 20rpx;
										margin-right: 6rpx;
									}
								}

								.phone {
									color: #666666;
									display: flex;
									align-items: center;

									image {
										width: 16rpx;
										height: 16rpx;
										margin-right: 6rpx;
									}
								}
							}
						}

						.business {
							display: flex;
							flex-direction: column;
							justify-content: center;
							align-items: center;
							border: 1px solid #1EB481;
							border-radius: 8rpx;
							overflow: hidden;

							.title {
								width: 110rpx;
								height: 39rpx;
								background: linear-gradient(0deg, #2AB883 0%, #89D894 100%);
								color: #fff;
								text-align: center;
								padding: 4rpx 0;
							}

							.time {
								color: #1EB481;
								padding: 4rpx 0;
								text-align: center;
							}
						}
					}
				}
			}
		}
	}
</style>